<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<form class="am-form am-form-horizontal hy-js-form">
			<div class="am-u-md-8 am-u-end">
						<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label"> 新闻标题</label>
						<div class="am-u-sm-9">
							<input type="text" name="title" class="am-input-sm" value="{$info.title}">
						</div>
						
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">新闻描述：</label>
						<div class="am-u-sm-9">
						<textarea name="new_desc" value="{$info.new_desc}"  rows="3" class="w200">{$info.new_desc}</textarea>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">新闻时间</label>
						<div class="am-u-sm-9">
							<input type="text" id="createtime" name="createtime"  value="{$info.createtime|date_format:'Y-m-d H:i:s'}" >
						</div>
					</div>
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="{$info.id}" />
							<input type="hidden" name="reporter_id" value="{$reporterId}" />
							<input type="hidden" name="type" value="1" />
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div>
			</div>
			</form>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript" src="{$_C.hy_path}js/laydate/laydate.js"></script>
		<script type="text/javascript">
		$(function(){
			laydate({
			   elem: '#createtime',
			   istime:true,
			   format: 'YYYY-MM-DD hh:mm:ss',
			})
		})
		   hy_submit('index.php?g=admin&m=reporter&a=updateLive','',function(result){
				if(result.error==1)
				{
					showMsg(result.content,result.error);
				}
				else
				{
					parent.$('#myReporterInfo').attr('src', parent.$('#myReporterInfo').attr('src'));
					var tab_li = parent.$(".am-active");
					if(tab_li.prev().length>0)
					{
						tab_li.prev().addClass('am-active');
						var id=tab_li.prev().attr('data-id');
				        parent.$('#'+id).show();
					}
					else if(tab_li.next().length>0)
					{
						tab_li.next().addClass('am-active');
						var id=tab_li.next().attr('data-id');
				        parent.$('#'+id).show();
					}
					else
					{
						var tab='<li data-id="index" class="am-active"><a  href="javascript:;"><span class="hy-tabs-title">首页</span><span class="am-icon-close"></span></a></li>'
					    parent.$('.hy-tabs .am-nav').append(tab);
					    var iframe='<iframe onload="javascript:hy_loading()" id="index" src="index.php?g=admin&m=index&a=main" width="100%" height="100%"></iframe>';
					    parent.$('.hy-iframe').append(iframe);
					}
					var id=tab_li.attr('data-id');
					tab_li.remove();
					parent.$("#"+id).remove();
				}
			});
		</script>
	</body>

</html>